﻿using KAsFrame.Common.Const;
using KAsFrame.Common.Dto;
using SqlSugar;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace KAsFrame.Domain.User.Entities
{
    [SugarTable("app_user")]
    public class UserInfo : SnowflakeIdEntity
    {
        [SugarColumn(ColumnDataType = ConstConfig.VARCHAR16)]
        public string Account { get; set; }

        [SugarColumn(ColumnDataType = ConstConfig.VARCHAR32)]
        public string Password { get; set; }

        [SugarColumn(ColumnDataType = ConstConfig.VARCHAR16)]
        public string UserName { get; set; }

        public int Gender { get; set; }

        [SugarColumn(IsNullable = true)]
        public string PhoneNumber { get; set; }

        [SugarColumn(IsNullable = true)]
        public string Email { get; set; }

        [SugarColumn(IsNullable = true)]
        public DateTime? CreateTime { get; set; }

        [SugarColumn(IsNullable = true)]
        public DateTime? UpdateTime { get; set; }
    }
}
